/*
 * @Author: Jimmy
 * @LastModifiedBy: Jimmy
 * @Date: 2024-06-23 13:20:34
 * @LastEditTime: 2024-06-23 13:36:11
 * @FilePath: /nest_study/web/src/views/system/user/components/rules.ts
 */
export const rules = {
    userName: [{ required: true, message: '请输入用户名！' }],
    nickName: [{ required: true, message: '请输入用户昵称！' }],
    sex: [{ required: true, message: '请选择性别！' }],
    phone: [{ required: true, message: '请输入正确的手机号', pattern: new RegExp(/^1(3|4|5|6|7|8|9)\d{9}$/, "g") }],
    password: [{ required: true, message: '请输入密码' }],
}